﻿using System;
using System.Data;
using System.Collections.Generic;
using QzEbook.Common;
using System.Data.Common;

/// <summary>
///ForgotPassord 的摘要说明
/// </summary>
public class ForgotPassord : abstractAccess<ForgotPassord> 
{
    private int count = 0;

    public int Count
    {
        get { return count; }
        set { count = value; }
    }
    private string userName;

    public string UserName
    {
        get { return userName; }
        set { userName = value; }
    }
    private string password;

    public string Password
    {
        get { return password; }
        set { password = value; }
    }
    private string email;

    public string Email
    {
        get { return email; }
        set { email = value; }
    }

	public ForgotPassord()
	{
	}
    protected override ForgotPassord bindRow(DataRow row)
    {
        ForgotPassord forgot = new ForgotPassord();
        forgot.password = row["UPwd"].ToString();
        forgot.UserName = row["UName"].ToString();
        forgot.email = row["UMail"].ToString();
        return forgot;
    }

    protected override DataTable selectTable()
    {
        DbCommand command = CreateCommand("getUserPassWord");
        addParameter(command, "UMail", Email);
        return DataAccess.ExcuteSelectCommand(command);
    }
}
